var mongoose = require('./connect');
// 定义文档结构
const profileSchema = mongoose.Schema({
    type:{
        type: String
    },
    describe:{
        type: String
    },
    income:{
        type: String,
        required: true
    },
    expend:{
        type: String,
        required: true
    },
    cash:{
        type: String,
        required: true
    },
    remark:{
        type: String
    },
    date:{
        type:Date,
        default: Date.now
    }

});
// 定义Model
const Profile = mongoose.model('profile', profileSchema);

module.exports = Profile;